package com.unism.uniMeterage.meterage.stream;

import java.util.EventObject;

public class MessageEvent extends EventObject {

	/**
	 * 定义消息传递过程中的状态
	 */
	public static enum MessageStatus {SENT, DELIVERED, COMPLETED, FAILED};
	
	protected MessageStatus status;
	protected Message message;
	
	public MessageStatus getStatus() {
		return status;
	}
	public MessageEvent(Object source, Message m, MessageStatus status) {
		super(source);
		this.message = m;
		this.status = status;
	}
}
